package com.exam.jpa;

import com.exam.entity.Score;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface ScoreJpa extends JpaRepository<Score, Integer> {
  public Score findByExamCode(String examCode);

  public Score findById(int id);

  //需要一个保存方法
  public Score save(Score score);

  public void deleteById(int id);

  public List<Score> findAll();

}
